define(
   [
      'dojo/_base/declare',
      'dojo/_base/lang',
      'noBusinessBase/gui/RefreshTree',
      'noBusinessBase/gui/ImagePathToCssClassConverter'
   ],
   function(declare, lang, RefreshTree, ImagePathToCssClassConverter)
   {
      return declare([RefreshTree],
      {
         /*
            THIS CLASS HAS BEEN DEPRICATED!
      
            Please use the helpers/IconClass class found in this layer instead.
         */
         constructor:function(args)
         {
            dojo.safeMixin(this, args);
            this.openedItems = [];
            this.mImagePathToCssClassConverter = new ImagePathToCssClassConverter({});
         },
         postscript: function(args)
         {
            this.inherited(arguments);
         },
         getIconClass : function(pItem, opened)
         {
            if(!pItem)
               return null;
      
            var image = pItem.Image;
            if(!image)
               return null;
      
            if(typeof image == 'object')
               image = image[0];
      
            if(pItem._altImage)
               image = pItem._altImage;
      
            return this.mImagePathToCssClassConverter.getIconClass(image);
         }
      });
   }
);
